/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package za.ac.cput.pretorius.question1.polymorphism.service.impl;

import za.ac.cput.pretorius.question1.polymorphism.model.impl.SuperUser;
import za.ac.cput.pretorius.question1.polymorphism.service.PrinterService;

/**
 *
 * @author griddy
 */
public class PrinterServiceImpl implements PrinterService{

    @Override
    public boolean print(SuperUser user) {
        
        if(user.getPrintCredit()>0)
        {
            user.decrementPrintCredit(1);
            return true;
        }
        else
            return false;
        
    }

   
}
